import { http,http_login } from "../axios"
export default {
  // 创建聊天室
  createChatRoom(data){
    return http_login.post('/api-chat/createChatRoom/',data)
  },
  // 获取房间信息
  getRoomInfo(data){
    return http_login.post('/api-chat/getRoomInfo/',data)
  },
  // 加载所有房间
  getAllRoom(){
    return http.post('/api-chat/getAllRoom/')
  },
  // 邀请好友进入房间
  inviteFriends(data){
    return http_login.post('/api-chat/inviteFriends/',data)
  },
  // 删除邀请链接
  removeInvite(data){
    return http_login.post('/api-chat/removeInvite/',data)
  },
  // 密码验证
  passwordRoom(data){
    return http_login.post('/api-chat/passwordRoom/',data)
  }
}